.class public final Lnbisdk/i;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/navbuilder/nb/a;
.implements Lcom/navbuilder/nb/c;
.implements Lnbisdk/oq;
.implements Lnbisdk/oy;
.implements Lnbisdk/pq;
.implements Lnbisdk/rf;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lnbisdk/i$a;
    }
.end annotation


# static fields
.field private static iL:Lnbisdk/i;


# instance fields
.field private volatile cB:Z

.field private d:Lnbisdk/ov;

.field private ee:Lnbisdk/jf;

.field private hn:Lnbisdk/ap;

.field private iA:J

.field private iB:J

.field private iC:Lnbisdk/kw;

.field private iD:Lnbisdk/kw;

.field private iE:J

.field private iF:J

.field private iG:I

.field private iH:I

.field private iI:J

.field private iJ:J

.field private iK:Z

.field private iM:J

.field private it:Z

.field private iu:Lnbisdk/hz;

.field private iv:Lnbisdk/my;

.field private iw:I

.field private ix:I

.field private iy:J

.field private iz:J


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lnbisdk/i;->iL:Lnbisdk/i;

    return-void
.end method

.method constructor <init>()V
    .locals 7

    const-wide/32 v5, 0x800000

    const/4 v4, 0x2

    const/4 v3, 0x0

    const-wide/16 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-boolean v3, p0, Lnbisdk/i;->it:Z

    new-instance v0, Lnbisdk/my;

    invoke-direct {v0}, Lnbisdk/my;-><init>()V

    iput-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    iput-wide v1, p0, Lnbisdk/i;->iE:J

    iput-wide v1, p0, Lnbisdk/i;->iF:J

    invoke-static {v5, v6}, Lnbisdk/pn;->k(J)Lnbisdk/ov;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    iput-wide v1, p0, Lnbisdk/i;->iJ:J

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    iput-boolean v3, p0, Lnbisdk/i;->iK:Z

    :try_start_0
    const-string v0, "com_nim_analytics"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lnbisdk/ap;->b(Ljava/lang/String;Z)Lnbisdk/ap;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    invoke-direct {p0}, Lnbisdk/i;->eU()V

    iget-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lnbisdk/ap;->B(I)[B

    move-result-object v0

    invoke-static {v0}, Lnbisdk/hz;->k([B)Lnbisdk/hz;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-direct {p0}, Lnbisdk/i;->eV()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    invoke-static {}, Lnbisdk/mw;->iU()Lnbisdk/dx;

    move-result-object v0

    invoke-interface {v0, p0}, Lnbisdk/dx;->a(Lnbisdk/oq;)V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gP()Lnbisdk/fq;

    move-result-object v0

    invoke-interface {v0, p0}, Lnbisdk/fq;->a(Lnbisdk/oy;)Lnbisdk/jf;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    invoke-static {}, Lnbisdk/mw;->iU()Lnbisdk/dx;

    move-result-object v0

    invoke-interface {v0, p0}, Lnbisdk/dx;->a(Lnbisdk/pq;)V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0, p0}, Lnbisdk/ix;->a(Lcom/navbuilder/nb/a;)V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gR()Lcom/navbuilder/nb/f;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/navbuilder/nb/f;->b(Lcom/navbuilder/nb/c;)V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    const/16 v1, 0x15

    invoke-virtual {v0, v1}, Lnbisdk/ix;->au(I)I

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lnbisdk/i;->iJ:J

    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v5, v6, v4}, Lnbisdk/pn;->a(Ljava/lang/String;JB)V

    invoke-direct {p0}, Lnbisdk/i;->eR()V

    goto :goto_0
.end method

.method private declared-synchronized a(Lnbisdk/kw;[Lnbisdk/ab;)V
    .locals 9

    monitor-enter p0

    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-boolean v2, p0, Lnbisdk/i;->cB:Z

    if-nez v2, :cond_1

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v2

    const/16 v3, 0x18

    invoke-virtual {v2, v3}, Lnbisdk/ix;->isEnabled(I)Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2}, Lnbisdk/hz;->gt()I

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {p1}, Lnbisdk/kw;->fX()D

    move-result-wide v2

    iget-object v4, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v4}, Lnbisdk/hz;->gu()I

    move-result v4

    int-to-double v4, v4

    cmpl-double v2, v2, v4

    if-gtz v2, :cond_1

    iget-wide v2, p0, Lnbisdk/i;->iB:J

    const-wide/16 v4, 0x0

    cmp-long v2, v2, v4

    if-eqz v2, :cond_0

    iget-wide v2, p0, Lnbisdk/i;->iB:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x3e8

    div-long/2addr v0, v2

    iget-object v2, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2}, Lnbisdk/hz;->gv()I

    move-result v2

    int-to-long v2, v2

    cmp-long v0, v0, v2

    if-ltz v0, :cond_1

    :cond_0
    iget-object v0, p0, Lnbisdk/i;->iC:Lnbisdk/kw;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lnbisdk/i;->iC:Lnbisdk/kw;

    invoke-interface {v0}, Lnbisdk/kw;->getLatitude()D

    move-result-wide v0

    iget-object v2, p0, Lnbisdk/i;->iC:Lnbisdk/kw;

    invoke-interface {v2}, Lnbisdk/kw;->getLongitude()D

    move-result-wide v2

    invoke-interface {p1}, Lnbisdk/kw;->getLatitude()D

    move-result-wide v4

    invoke-interface {p1}, Lnbisdk/kw;->getLongitude()D

    move-result-wide v6

    const/4 v8, 0x0

    invoke-static/range {v0 .. v8}, Lnbisdk/kv;->a(DDDD[D)D

    move-result-wide v0

    iget-object v2, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2}, Lnbisdk/hz;->gw()I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v2

    int-to-double v2, v2

    cmpg-double v0, v0, v2

    if-gez v0, :cond_2

    :cond_1
    :goto_0
    monitor-exit p0

    return-void

    :cond_2
    if-eqz p2, :cond_5

    :try_start_1
    iget-wide v0, p0, Lnbisdk/i;->iE:J

    iget-object v2, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    invoke-interface {v2}, Lnbisdk/jf;->gW()J

    move-result-wide v2

    sub-long/2addr v0, v2

    long-to-int v0, v0

    if-gez v0, :cond_3

    const/16 v1, 0x20

    sub-int v0, v1, v0

    xor-int/lit8 v0, v0, 0x2

    :cond_3
    const/4 v1, 0x0

    :goto_1
    array-length v2, p2

    if-ge v1, v2, :cond_5

    aget-object v2, p2, v1

    if-eqz v2, :cond_4

    aget-object v2, p2, v1

    int-to-long v3, v0

    invoke-virtual {v2, v3, v4}, Lnbisdk/ab;->c(J)V

    :cond_4
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_5
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/i;->iB:J

    iput-object p1, p0, Lnbisdk/i;->iC:Lnbisdk/kw;

    iget-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v0, p1, p2}, Lnbisdk/my;->c(Lnbisdk/kw;[Lnbisdk/ab;)Lnbisdk/mr;

    move-result-object v0

    invoke-direct {p0, v0}, Lnbisdk/i;->a(Lnbisdk/mr;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    :try_start_2
    iget-object v1, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    invoke-virtual {v1, v0}, Lnbisdk/ov;->b(Ljava/lang/Throwable;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private a(Lnbisdk/mr;)V
    .locals 8

    const-wide/16 v6, 0x0

    const/4 v5, 0x0

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    const-string v1, "ENTER persist"

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    :cond_0
    invoke-virtual {p1}, Lnbisdk/mr;->gq()[B

    move-result-object v0

    invoke-virtual {p1}, Lnbisdk/mr;->iP()I

    move-result v1

    if-eqz v1, :cond_6

    :try_start_0
    iget-object v1, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    invoke-virtual {p1}, Lnbisdk/mr;->iP()I

    move-result v2

    const/4 v3, 0x0

    array-length v4, v0

    invoke-virtual {v1, v2, v0, v3, v4}, Lnbisdk/ap;->a(I[BII)V
    :try_end_0
    .catch Lnbisdk/an; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iget v1, p0, Lnbisdk/i;->iw:I

    array-length v2, v0

    add-int/2addr v1, v2

    iput v1, p0, Lnbisdk/i;->iw:I

    iget v1, p0, Lnbisdk/i;->ix:I

    array-length v2, v0

    add-int/2addr v1, v2

    iput v1, p0, Lnbisdk/i;->ix:I

    iget-wide v1, p0, Lnbisdk/i;->iy:J

    cmp-long v1, v1, v6

    if-nez v1, :cond_1

    invoke-virtual {p1}, Lnbisdk/mr;->iM()J

    move-result-wide v1

    invoke-static {v1, v2, v5}, Lnbisdk/pb;->getJavaTimeFromGPSTime(JI)J

    move-result-wide v1

    iput-wide v1, p0, Lnbisdk/i;->iy:J

    :cond_1
    iget-wide v1, p0, Lnbisdk/i;->iz:J

    cmp-long v1, v1, v6

    if-nez v1, :cond_2

    invoke-virtual {p1}, Lnbisdk/mr;->iM()J

    move-result-wide v1

    invoke-static {v1, v2, v5}, Lnbisdk/pb;->getJavaTimeFromGPSTime(JI)J

    move-result-wide v1

    iput-wide v1, p0, Lnbisdk/i;->iz:J

    :cond_2
    iget-wide v1, p0, Lnbisdk/i;->iA:J

    cmp-long v1, v1, v6

    if-nez v1, :cond_3

    sget-object v1, Lnbisdk/by;->do:[Z

    invoke-virtual {p1}, Lnbisdk/mr;->iE()B

    move-result v2

    aget-boolean v1, v1, v2

    if-eqz v1, :cond_3

    invoke-virtual {p1}, Lnbisdk/mr;->iM()J

    move-result-wide v1

    iput-wide v1, p0, Lnbisdk/i;->iA:J

    :cond_3
    sget-boolean v1, Lnbisdk/bk;->DEBUG:Z

    if-eqz v1, :cond_4

    iget-object v1, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "totalRecordSize="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, p0, Lnbisdk/i;->iw:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", oldestRecordTime"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-wide v3, p0, Lnbisdk/i;->iy:J

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", length="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    array-length v0, v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    :cond_4
    invoke-direct {p0}, Lnbisdk/i;->eW()V

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_5

    iget-object v0, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    const-string v1, "LEAVE persist"

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    :cond_5
    return-void

    :catch_0
    move-exception v1

    iget-object v1, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    array-length v2, v0

    invoke-virtual {v1, v0, v5, v2}, Lnbisdk/ap;->a([BII)I

    move-result v1

    invoke-virtual {p1, v1}, Lnbisdk/mr;->aR(I)V

    goto/16 :goto_0

    :cond_6
    iget-object v1, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    array-length v2, v0

    invoke-virtual {v1, v0, v5, v2}, Lnbisdk/ap;->a([BII)I

    move-result v1

    invoke-virtual {p1, v1}, Lnbisdk/mr;->aR(I)V

    goto/16 :goto_0
.end method

.method private declared-synchronized a(ZLjava/util/Vector;)V
    .locals 8

    const/4 v4, 0x1

    monitor-enter p0

    if-nez p2, :cond_8

    :try_start_0
    iget-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v0}, Lnbisdk/my;->iW()Ljava/util/Vector;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v0

    move-object v1, v0

    :goto_0
    :try_start_1
    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v0

    sget-boolean v2, Lnbisdk/bk;->cG:Z

    if-eqz v2, :cond_0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Deleting "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lnbisdk/ef;->H(Ljava/lang/String;)V

    :cond_0
    sub-int/2addr v0, v4

    move v2, v0

    :goto_1
    if-ltz v2, :cond_4

    invoke-virtual {v1, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/mr;

    iget-object v3, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v3, v0}, Lnbisdk/my;->d(Lnbisdk/mr;)V

    sget-boolean v3, Lnbisdk/bk;->cG:Z

    if-eqz v3, :cond_1

    invoke-virtual {v0}, Lnbisdk/mr;->getId()I

    move-result v3

    invoke-virtual {v0}, Lnbisdk/mr;->iM()J

    move-result-wide v4

    long-to-int v4, v4

    invoke-virtual {v0}, Lnbisdk/mr;->iN()J

    move-result-wide v5

    long-to-int v5, v5

    invoke-virtual {v0}, Lnbisdk/mr;->iE()B

    move-result v6

    if-eqz p1, :cond_3

    const/16 v7, 0xa

    :goto_2
    invoke-static {v3, v4, v5, v6, v7}, Lnbisdk/ef;->a(IIIBB)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Lnbisdk/an; {:try_start_1 .. :try_end_1} :catch_1

    :cond_1
    :try_start_2
    iget-object v3, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    invoke-virtual {v0}, Lnbisdk/mr;->iP()I

    move-result v4

    invoke-virtual {v3, v4}, Lnbisdk/ap;->C(I)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Lnbisdk/an; {:try_start_2 .. :try_end_2} :catch_0

    :cond_2
    :goto_3
    add-int/lit8 v0, v2, -0x1

    move v2, v0

    goto :goto_1

    :cond_3
    const/16 v7, 0xb

    goto :goto_2

    :catch_0
    move-exception v3

    const-wide/high16 v4, 0x8

    const/4 v6, 0x1

    :try_start_3
    invoke-static {v3, v4, v5, v6}, Lnbisdk/pn;->a(Ljava/lang/Throwable;JB)V

    sget-boolean v3, Lnbisdk/bk;->cG:Z

    if-eqz v3, :cond_2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Del.Fail."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v0}, Lnbisdk/mr;->getId()I

    move-result v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lnbisdk/ef;->H(Ljava/lang/String;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Lnbisdk/an; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_3

    :catch_1
    move-exception v0

    const-wide/high16 v1, 0x8

    const/4 v3, 0x1

    :try_start_4
    invoke-static {v0, v1, v2, v3}, Lnbisdk/pn;->a(Ljava/lang/Throwable;JB)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    :goto_4
    monitor-exit p0

    return-void

    :cond_4
    :try_start_5
    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_5

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Rem.Size "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v1}, Lnbisdk/my;->iW()Ljava/util/Vector;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lnbisdk/ef;->H(Ljava/lang/String;)V

    :cond_5
    if-eqz p1, :cond_6

    const-wide/16 v0, 0x0

    :goto_5
    iput-wide v0, p0, Lnbisdk/i;->iy:J

    if-eqz p1, :cond_7

    const/4 v0, 0x0

    :goto_6
    iput v0, p0, Lnbisdk/i;->iw:I

    invoke-direct {p0}, Lnbisdk/i;->eW()V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0
    .catch Lnbisdk/an; {:try_start_5 .. :try_end_5} :catch_1

    goto :goto_4

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_6
    :try_start_6
    iget-wide v0, p0, Lnbisdk/i;->iz:J

    goto :goto_5

    :cond_7
    iget v0, p0, Lnbisdk/i;->ix:I
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0
    .catch Lnbisdk/an; {:try_start_6 .. :try_end_6} :catch_1

    goto :goto_6

    :cond_8
    move-object v1, p2

    goto/16 :goto_0
.end method

.method static synthetic a(Lnbisdk/i;Z)Z
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/i;->cB:Z

    return v0
.end method

.method private static d(Lnbisdk/kw;)Z
    .locals 4

    invoke-interface {p0}, Lnbisdk/kw;->fX()D

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmpl-double v0, v0, v2

    if-lez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static eQ()Lnbisdk/i;
    .locals 1

    sget-object v0, Lnbisdk/i;->iL:Lnbisdk/i;

    if-nez v0, :cond_0

    new-instance v0, Lnbisdk/i;

    invoke-direct {v0}, Lnbisdk/i;-><init>()V

    sput-object v0, Lnbisdk/i;->iL:Lnbisdk/i;

    :cond_0
    sget-object v0, Lnbisdk/i;->iL:Lnbisdk/i;

    return-object v0
.end method

.method private eR()V
    .locals 4

    :try_start_0
    const-string v0, "com_nim_analytics"

    invoke-static {v0}, Lnbisdk/ap;->h(Ljava/lang/String;)V
    :try_end_0
    .catch Lnbisdk/an; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    :goto_0
    :try_start_1
    const-string v0, "com_nim_analytics"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lnbisdk/ap;->b(Ljava/lang/String;Z)Lnbisdk/ap;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :try_start_2
    iget-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    const/16 v1, 0xc

    new-array v1, v1, [B

    const/4 v2, 0x0

    const/16 v3, 0xc

    invoke-virtual {v0, v1, v2, v3}, Lnbisdk/ap;->a([BII)I

    const/4 v0, 0x0

    iput v0, p0, Lnbisdk/i;->iw:I

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lnbisdk/i;->iy:J

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lnbisdk/i;->iA:J

    new-instance v0, Lnbisdk/hz;

    invoke-direct {v0}, Lnbisdk/hz;-><init>()V

    iput-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v0}, Lnbisdk/hz;->gq()[B

    move-result-object v0

    iget-object v1, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    const/4 v2, 0x0

    array-length v3, v0

    invoke-virtual {v1, v0, v2, v3}, Lnbisdk/ap;->a([BII)I
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    :goto_1
    return-void

    :catch_0
    move-exception v0

    :try_start_3
    iget-object v1, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    invoke-virtual {v1, v0}, Lnbisdk/ov;->b(Ljava/lang/Throwable;)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    const-wide/32 v1, 0x800000

    const/4 v3, 0x2

    invoke-static {v0, v1, v2, v3}, Lnbisdk/pn;->a(Ljava/lang/Throwable;JB)V

    goto :goto_1

    :catch_2
    move-exception v0

    goto :goto_0
.end method

.method private declared-synchronized eT()V
    .locals 10

    const/4 v4, 0x1

    const/4 v9, 0x0

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v0}, Lnbisdk/hz;->gm()I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :cond_1
    :try_start_1
    invoke-static {}, Lnbisdk/my;->iM()J

    move-result-wide v1

    iget-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v0}, Lnbisdk/my;->iW()Ljava/util/Vector;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v0

    sub-int/2addr v0, v4

    move v4, v0

    :goto_1
    if-ltz v4, :cond_4

    invoke-virtual {v3, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/mr;

    invoke-virtual {v0}, Lnbisdk/mr;->iM()J

    move-result-wide v5

    sub-long v5, v1, v5

    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v0}, Lnbisdk/hz;->gm()I

    move-result v0

    mul-int/lit8 v0, v0, 0x3c

    int-to-long v7, v0

    cmp-long v0, v5, v7

    if-lez v0, :cond_3

    move v1, v9

    :goto_2
    if-gt v1, v4, :cond_4

    const/4 v0, 0x0

    invoke-virtual {v3, v0}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/mr;

    iget-object v2, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v2, v0}, Lnbisdk/my;->d(Lnbisdk/mr;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    iget-object v2, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    invoke-virtual {v0}, Lnbisdk/mr;->iP()I

    move-result v5

    invoke-virtual {v2, v5}, Lnbisdk/ap;->C(I)V

    sget-boolean v2, Lnbisdk/bk;->cG:Z

    if-eqz v2, :cond_2

    invoke-virtual {v0}, Lnbisdk/mr;->getId()I

    move-result v2

    invoke-virtual {v0}, Lnbisdk/mr;->iM()J

    move-result-wide v5

    long-to-int v5, v5

    invoke-virtual {v0}, Lnbisdk/mr;->iN()J

    move-result-wide v6

    long-to-int v6, v6

    invoke-virtual {v0}, Lnbisdk/mr;->iE()B

    move-result v7

    const/4 v8, 0x4

    invoke-static {v2, v5, v6, v7, v8}, Lnbisdk/ef;->a(IIIBB)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Lnbisdk/an; {:try_start_2 .. :try_end_2} :catch_0

    :cond_2
    :goto_3
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_2

    :catch_0
    move-exception v2

    const-wide/high16 v5, 0x8

    const/4 v7, 0x1

    :try_start_3
    invoke-static {v2, v5, v6, v7}, Lnbisdk/pn;->a(Ljava/lang/Throwable;JB)V

    sget-boolean v2, Lnbisdk/bk;->cG:Z

    if-eqz v2, :cond_2

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "D.E.Fail."

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v0}, Lnbisdk/mr;->getId()I

    move-result v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lnbisdk/ef;->H(Ljava/lang/String;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_3

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_3
    add-int/lit8 v0, v4, -0x1

    move v4, v0

    goto :goto_1

    :cond_4
    :try_start_4
    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v0

    if-lez v0, :cond_0

    const/4 v0, 0x0

    invoke-virtual {v3, v0}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/mr;

    invoke-virtual {v0}, Lnbisdk/mr;->iM()J

    move-result-wide v0

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lnbisdk/pb;->getJavaTimeFromGPSTime(JI)J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/i;->iy:J
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto/16 :goto_0
.end method

.method private eU()V
    .locals 7

    const/4 v6, 0x4

    iget-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    iget-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lnbisdk/ap;->B(I)[B

    move-result-object v0

    const/4 v1, 0x3

    :goto_0
    if-ltz v1, :cond_3

    iget v2, p0, Lnbisdk/i;->iw:I

    aget-byte v3, v0, v1

    and-int/lit16 v3, v3, 0xff

    or-int/2addr v2, v3

    iput v2, p0, Lnbisdk/i;->iw:I

    if-eqz v1, :cond_2

    iget v2, p0, Lnbisdk/i;->iw:I

    shl-int/lit8 v2, v2, 0x8

    iput v2, p0, Lnbisdk/i;->iw:I

    :cond_2
    add-int/lit8 v1, v1, -0x1

    goto :goto_0

    :cond_3
    const/16 v1, 0xb

    :goto_1
    if-lt v1, v6, :cond_0

    iget-wide v2, p0, Lnbisdk/i;->iy:J

    aget-byte v4, v0, v1

    and-int/lit16 v4, v4, 0xff

    int-to-long v4, v4

    or-long/2addr v2, v4

    iput-wide v2, p0, Lnbisdk/i;->iy:J

    if-eq v1, v6, :cond_4

    iget-wide v2, p0, Lnbisdk/i;->iy:J

    const/16 v4, 0x8

    shl-long/2addr v2, v4

    iput-wide v2, p0, Lnbisdk/i;->iy:J

    :cond_4
    add-int/lit8 v1, v1, -0x1

    goto :goto_1
.end method

.method private eV()V
    .locals 7

    const/4 v6, 0x1

    iget-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lnbisdk/ap;->a(Lnbisdk/jt;)Lnbisdk/cl;

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    iput v1, p0, Lnbisdk/i;->iw:I

    move v1, v6

    :cond_2
    :goto_1
    invoke-interface {v0}, Lnbisdk/cl;->cj()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-interface {v0}, Lnbisdk/cl;->ci()I

    move-result v2

    if-eq v2, v6, :cond_2

    const/4 v3, 0x2

    if-eq v2, v3, :cond_2

    iget-object v3, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    invoke-virtual {v3, v2}, Lnbisdk/ap;->B(I)[B

    move-result-object v3

    if-eqz v3, :cond_2

    array-length v4, v3

    if-eq v4, v6, :cond_2

    iget v4, p0, Lnbisdk/i;->iw:I

    array-length v5, v3

    add-int/2addr v4, v5

    iput v4, p0, Lnbisdk/i;->iw:I

    invoke-static {v3}, Lnbisdk/mr;->p([B)Lnbisdk/mr;

    move-result-object v3

    if-eqz v3, :cond_2

    invoke-virtual {v3, v2}, Lnbisdk/mr;->aR(I)V

    iget-object v2, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v2, v3}, Lnbisdk/my;->c(Lnbisdk/mr;)V

    invoke-virtual {v3}, Lnbisdk/mr;->getId()I

    move-result v2

    if-le v2, v1, :cond_2

    invoke-virtual {v3}, Lnbisdk/mr;->getId()I

    move-result v1

    goto :goto_1

    :cond_3
    invoke-static {v1}, Lnbisdk/my;->aS(I)V

    iget-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v0}, Lnbisdk/my;->iW()Ljava/util/Vector;

    move-result-object v0

    new-instance v1, Lnbisdk/i$1;

    invoke-direct {v1, p0}, Lnbisdk/i$1;-><init>(Lnbisdk/i;)V

    invoke-static {v0, v1}, Lnbisdk/qo;->b(Ljava/util/Vector;Lnbisdk/jt;)V

    goto :goto_0
.end method

.method private eW()V
    .locals 9

    const/16 v8, 0xc

    const/16 v7, 0xb

    const/4 v4, 0x3

    const/4 v6, 0x0

    iget-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget v0, p0, Lnbisdk/i;->iw:I

    new-array v1, v8, [B

    move v2, v0

    move v0, v6

    :goto_1
    if-gt v0, v4, :cond_2

    int-to-byte v3, v2

    aput-byte v3, v1, v0

    if-eq v0, v4, :cond_1

    shr-int/lit8 v2, v2, 0x8

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_2
    iget-wide v2, p0, Lnbisdk/i;->iy:J

    const/4 v0, 0x4

    :goto_2
    if-gt v0, v7, :cond_4

    const-wide/16 v4, 0xff

    and-long/2addr v4, v2

    long-to-int v4, v4

    int-to-byte v4, v4

    aput-byte v4, v1, v0

    if-eq v0, v7, :cond_3

    const/16 v4, 0x8

    shr-long/2addr v2, v4

    :cond_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    :cond_4
    iget-object v0, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    const/4 v2, 0x1

    invoke-virtual {v0, v2, v1, v6, v8}, Lnbisdk/ap;->a(I[BII)V

    goto :goto_0
.end method

.method private v(Z)V
    .locals 13

    const-wide/16 v11, 0x3e8

    const/4 v10, 0x0

    const/4 v9, 0x1

    const-wide/16 v7, 0x0

    iget-boolean v0, p0, Lnbisdk/i;->cB:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    const-string v1, "ENTER checkUpload"

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    :cond_2
    sget-boolean v0, Lnbisdk/bk;->cI:Z

    if-eqz v0, :cond_3

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    :cond_3
    if-eqz p1, :cond_9

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-object v2, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2}, Lnbisdk/hz;->gl()I

    move-result v2

    if-eqz v2, :cond_d

    iget-wide v2, p0, Lnbisdk/i;->iy:J

    cmp-long v2, v2, v7

    if-eqz v2, :cond_d

    iget-wide v2, p0, Lnbisdk/i;->iy:J

    sub-long v2, v0, v2

    div-long/2addr v2, v11

    iget-object v4, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v4}, Lnbisdk/hz;->gl()I

    move-result v4

    int-to-long v4, v4

    cmp-long v2, v2, v4

    if-ltz v2, :cond_d

    move v2, v9

    :goto_1
    if-nez v2, :cond_5

    iget-object v3, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v3}, Lnbisdk/hz;->gn()I

    move-result v3

    if-eqz v3, :cond_5

    iget v3, p0, Lnbisdk/i;->iw:I

    iget-object v4, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v4}, Lnbisdk/hz;->gn()I

    move-result v4

    if-ge v3, v4, :cond_4

    iget-wide v3, p0, Lnbisdk/i;->iJ:J

    cmp-long v3, v3, v7

    if-lez v3, :cond_5

    iget v3, p0, Lnbisdk/i;->iw:I

    int-to-long v3, v3

    iget-wide v5, p0, Lnbisdk/i;->iJ:J

    cmp-long v3, v3, v5

    if-lez v3, :cond_5

    :cond_4
    move v2, v9

    :cond_5
    if-nez v2, :cond_6

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v3

    invoke-virtual {v3}, Lnbisdk/ix;->gV()I

    move-result v3

    const/4 v4, 0x5

    if-le v3, v4, :cond_6

    iget-wide v3, p0, Lnbisdk/i;->iA:J

    cmp-long v3, v3, v7

    if-eqz v3, :cond_6

    iget-object v3, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v3}, Lnbisdk/hz;->gs()I

    move-result v3

    if-eqz v3, :cond_6

    div-long v3, v0, v11

    iget-wide v5, p0, Lnbisdk/i;->iA:J

    sub-long/2addr v3, v5

    iget-object v5, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v5}, Lnbisdk/hz;->gs()I

    move-result v5

    int-to-long v5, v5

    cmp-long v3, v3, v5

    if-ltz v3, :cond_6

    move v2, v9

    :cond_6
    if-eqz v2, :cond_c

    iget-wide v3, p0, Lnbisdk/i;->iI:J

    cmp-long v3, v3, v7

    if-eqz v3, :cond_c

    iget-wide v3, p0, Lnbisdk/i;->iI:J

    sub-long/2addr v0, v3

    div-long/2addr v0, v11

    iget-object v3, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v3}, Lnbisdk/hz;->gl()I

    move-result v3

    int-to-long v3, v3

    cmp-long v0, v0, v3

    if-gez v0, :cond_c

    move v0, v10

    :goto_2
    if-eqz v0, :cond_8

    monitor-enter p0

    :try_start_0
    iget-boolean v1, p0, Lnbisdk/i;->cB:Z

    if-nez v1, :cond_7

    iget-boolean v1, p0, Lnbisdk/i;->it:Z

    if-eqz v1, :cond_a

    iget-object v1, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v1}, Lnbisdk/my;->iW()Ljava/util/Vector;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-nez v1, :cond_a

    :cond_7
    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_8
    :goto_3
    sget-boolean v1, Lnbisdk/bk;->DEBUG:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "upload="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, ", oldestRecordTime="

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-wide v2, p0, Lnbisdk/i;->iy:J

    invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, ", totalRecordSize="

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v2, p0, Lnbisdk/i;->iw:I

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    iget-object v0, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    const-string v1, "LEAVE checkUpload"

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_9
    move v0, v9

    goto :goto_2

    :cond_a
    const/4 v1, 0x1

    :try_start_1
    iput-boolean v1, p0, Lnbisdk/i;->cB:Z

    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/ix;->gR()Lcom/navbuilder/nb/f;

    move-result-object v1

    invoke-static {p0, v1}, Lnbisdk/dh;->a(Lnbisdk/rf;Lcom/navbuilder/nb/f;)Lnbisdk/fr;

    move-result-object v1

    sget-boolean v2, Lnbisdk/bk;->cG:Z

    if-eqz v2, :cond_b

    const-string v2, "Analytics (uploading)"

    invoke-static {v2}, Lnbisdk/ef;->H(Ljava/lang/String;)V

    :cond_b
    invoke-direct {p0}, Lnbisdk/i;->eT()V

    iget-object v2, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    iget-object v3, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2, v3}, Lnbisdk/my;->b(Lnbisdk/hz;)V

    iget-object v2, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-interface {v1, v2}, Lnbisdk/fr;->a(Lnbisdk/my;)V

    iput v10, p0, Lnbisdk/i;->ix:I

    iput-wide v7, p0, Lnbisdk/i;->iz:J

    iput-wide v7, p0, Lnbisdk/i;->iA:J

    goto :goto_3

    :catchall_0
    move-exception v0

    :try_start_2
    monitor-exit p0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw v0

    :cond_c
    move v0, v2

    goto/16 :goto_2

    :cond_d
    move v2, v10

    goto/16 :goto_1
.end method


# virtual methods
.method public final declared-synchronized a(Lnbisdk/em;)I
    .locals 7

    const/4 v6, 0x0

    monitor-enter p0

    :try_start_0
    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gQ()Lnbisdk/hj;

    move-result-object v0

    const/16 v1, 0xd

    invoke-interface {v0, v1}, Lnbisdk/hj;->isEnabled(I)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    if-nez v0, :cond_0

    move v0, v6

    :goto_0
    monitor-exit p0

    return v0

    :cond_0
    :try_start_1
    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v0}, Lnbisdk/hz;->go()I

    move-result v0

    if-nez v0, :cond_1

    move v0, v6

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {p1}, Lnbisdk/em;->eg()Lnbisdk/lg;

    move-result-object v1

    invoke-virtual {p1}, Lnbisdk/em;->getScheme()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/my;->a(Lnbisdk/lg;Ljava/lang/String;)Lnbisdk/mr;

    move-result-object v0

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/ix;->gV()I

    move-result v1

    const/4 v2, 0x5

    if-le v1, v2, :cond_2

    new-instance v1, Lnbisdk/lc;

    invoke-virtual {p1}, Lnbisdk/em;->ed()Lnbisdk/br;

    move-result-object v2

    invoke-interface {v2}, Lnbisdk/br;->getLatitude()D

    move-result-wide v2

    invoke-virtual {p1}, Lnbisdk/em;->ed()Lnbisdk/br;

    move-result-object v4

    invoke-interface {v4}, Lnbisdk/br;->getLongitude()D

    move-result-wide v4

    invoke-direct {v1, v2, v3, v4, v5}, Lnbisdk/lc;-><init>(DD)V

    invoke-virtual {v0, v1}, Lnbisdk/mr;->a(Lnbisdk/lc;)V

    invoke-virtual {p1}, Lnbisdk/em;->es()Lnbisdk/cy;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/mr;->c(Lnbisdk/cy;)V

    invoke-virtual {p1}, Lnbisdk/em;->et()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/mr;->O(Ljava/lang/String;)V

    :cond_2
    invoke-direct {p0, v0}, Lnbisdk/i;->a(Lnbisdk/mr;)V

    invoke-virtual {v0}, Lnbisdk/mr;->getId()I
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v0

    goto :goto_0

    :catch_0
    move-exception v0

    :try_start_2
    iget-object v1, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    invoke-virtual {v1, v0}, Lnbisdk/ov;->b(Ljava/lang/Throwable;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move v0, v6

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized a(IF)V
    .locals 6

    monitor-enter p0

    :try_start_0
    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gQ()Lnbisdk/hj;

    move-result-object v0

    const/16 v1, 0xd

    invoke-interface {v0, v1}, Lnbisdk/hj;->isEnabled(I)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :cond_1
    :try_start_1
    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v0}, Lnbisdk/hz;->gp()I

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    const-wide/16 v1, 0x0

    iget v3, p0, Lnbisdk/i;->iG:I

    move v4, p1

    move v5, p2

    invoke-virtual/range {v0 .. v5}, Lnbisdk/my;->a(JIIF)Lnbisdk/mr;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/mr;->getId()I

    move-result v1

    iput v1, p0, Lnbisdk/i;->iH:I

    invoke-direct {p0, v0}, Lnbisdk/i;->a(Lnbisdk/mr;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    :try_start_2
    iget-object v1, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    invoke-virtual {v1, v0}, Lnbisdk/ov;->b(Ljava/lang/Throwable;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final a(Lcom/navbuilder/nb/e;)V
    .locals 0

    return-void
.end method

.method public final declared-synchronized a(Ljava/lang/String;IF)V
    .locals 8

    monitor-enter p0

    :try_start_0
    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gQ()Lnbisdk/hj;

    move-result-object v0

    const/16 v1, 0xd

    invoke-interface {v0, v1}, Lnbisdk/hj;->isEnabled(I)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :cond_1
    :try_start_1
    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v0}, Lnbisdk/hz;->gp()I

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    const-wide/16 v1, 0x0

    iget v3, p0, Lnbisdk/i;->iG:I

    iget v4, p0, Lnbisdk/i;->iH:I

    move-object v5, p1

    move v6, p2

    move v7, p3

    invoke-virtual/range {v0 .. v7}, Lnbisdk/my;->a(JIILjava/lang/String;IF)Lnbisdk/mr;

    move-result-object v0

    invoke-direct {p0, v0}, Lnbisdk/i;->a(Lnbisdk/mr;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    :try_start_2
    iget-object v1, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    invoke-virtual {v1, v0}, Lnbisdk/ov;->b(Ljava/lang/Throwable;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final a(Ljava/lang/Throwable;)V
    .locals 0

    return-void
.end method

.method public final declared-synchronized a(Lnbisdk/dq;Lnbisdk/dq;Ljava/lang/String;)V
    .locals 6

    monitor-enter p0

    :try_start_0
    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gQ()Lnbisdk/hj;

    move-result-object v0

    const/16 v1, 0xd

    invoke-interface {v0, v1}, Lnbisdk/hj;->isEnabled(I)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    monitor-exit p0

    return-void

    :cond_1
    :try_start_1
    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v0}, Lnbisdk/hz;->gp()I

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    const-wide/16 v3, 0x0

    move-object v1, p1

    move-object v2, p2

    move-object v5, p3

    invoke-virtual/range {v0 .. v5}, Lnbisdk/my;->a(Lnbisdk/dq;Lnbisdk/dq;JLjava/lang/String;)Lnbisdk/mr;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/mr;->getId()I

    move-result v1

    iput v1, p0, Lnbisdk/i;->iG:I

    invoke-direct {p0, v0}, Lnbisdk/i;->a(Lnbisdk/mr;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    :try_start_2
    iget-object v1, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    invoke-virtual {v1, v0}, Lnbisdk/ov;->b(Ljava/lang/Throwable;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final a(Lnbisdk/hz;Lcom/navbuilder/nb/b;)V
    .locals 6

    const/4 v5, 0x0

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lnbisdk/i;->iI:J

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    const-string v1, "ENTER onAnalyticsInformation"

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v0, p1}, Lnbisdk/hz;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    :try_start_0
    invoke-virtual {p1}, Lnbisdk/hz;->gq()[B

    move-result-object v0

    iget-object v1, p0, Lnbisdk/i;->hn:Lnbisdk/ap;

    const/4 v2, 0x2

    const/4 v3, 0x0

    array-length v4, v0

    invoke-virtual {v1, v2, v0, v3, v4}, Lnbisdk/ap;->a(I[BII)V
    :try_end_0
    .catch Lnbisdk/an; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    :goto_0
    iput-object p1, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/i;->it:Z

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-static {v0}, Lnbisdk/cq;->a(Lnbisdk/hz;)V

    :cond_2
    invoke-virtual {p1}, Lnbisdk/hz;->gr()Ljava/util/Vector;

    move-result-object v0

    invoke-direct {p0, v5, v0}, Lnbisdk/i;->a(ZLjava/util/Vector;)V

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lnbisdk/hz;->f(Ljava/util/Vector;)V

    iput-boolean v5, p0, Lnbisdk/i;->cB:Z

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    const-string v1, "LEAVE onAnalyticsInformation"

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    iget-object v0, p0, Lnbisdk/i;->d:Lnbisdk/ov;

    invoke-virtual {p1}, Lnbisdk/hz;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    :cond_3
    return-void

    :catch_0
    move-exception v0

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_1

    const-string v0, "Configsave failed"

    invoke-static {v0}, Lnbisdk/cq;->H(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public final a(Lnbisdk/kw;)V
    .locals 9

    if-eqz p1, :cond_0

    iput-object p1, p0, Lnbisdk/i;->iD:Lnbisdk/kw;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/i;->iE:J

    iget-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    invoke-interface {v0}, Lnbisdk/jf;->gY()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v2

    const/16 v3, 0x18

    invoke-virtual {v2, v3}, Lnbisdk/ix;->isEnabled(I)Z

    move-result v2

    if-eqz v2, :cond_0

    iget-object v2, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2}, Lnbisdk/hz;->gt()I

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {p1}, Lnbisdk/kw;->fX()D

    move-result-wide v2

    iget-object v4, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v4}, Lnbisdk/hz;->gu()I

    move-result v4

    int-to-double v4, v4

    cmpl-double v2, v2, v4

    if-gtz v2, :cond_0

    iget-wide v2, p0, Lnbisdk/i;->iB:J

    const-wide/16 v4, 0x0

    cmp-long v2, v2, v4

    if-eqz v2, :cond_2

    iget-wide v2, p0, Lnbisdk/i;->iB:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x3e8

    div-long/2addr v0, v2

    iget-object v2, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2}, Lnbisdk/hz;->gv()I

    move-result v2

    int-to-long v2, v2

    cmp-long v0, v0, v2

    if-ltz v0, :cond_0

    :cond_2
    iget-object v0, p0, Lnbisdk/i;->iC:Lnbisdk/kw;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/i;->iC:Lnbisdk/kw;

    invoke-interface {v0}, Lnbisdk/kw;->getLatitude()D

    move-result-wide v0

    iget-object v2, p0, Lnbisdk/i;->iC:Lnbisdk/kw;

    invoke-interface {v2}, Lnbisdk/kw;->getLongitude()D

    move-result-wide v2

    invoke-interface {p1}, Lnbisdk/kw;->getLatitude()D

    move-result-wide v4

    invoke-interface {p1}, Lnbisdk/kw;->getLongitude()D

    move-result-wide v6

    const/4 v8, 0x0

    invoke-static/range {v0 .. v8}, Lnbisdk/kv;->a(DDDD[D)D

    move-result-wide v0

    iget-object v2, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2}, Lnbisdk/hz;->gw()I

    move-result v2

    int-to-double v2, v2

    cmpg-double v0, v0, v2

    if-ltz v0, :cond_0

    :cond_3
    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/i;->iK:Z

    goto :goto_0
.end method

.method public final a(S)V
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    invoke-interface {v0, v1}, Lnbisdk/jf;->b(Lnbisdk/oy;)V

    :cond_0
    invoke-static {}, Lnbisdk/mw;->iU()Lnbisdk/dx;

    move-result-object v0

    invoke-interface {v0, p0}, Lnbisdk/dx;->b(Lnbisdk/pq;)V

    sput-object v1, Lnbisdk/i;->iL:Lnbisdk/i;

    return-void
.end method

.method public final a(Lnbisdk/jw;)Z
    .locals 4

    const/4 v1, 0x0

    if-nez p1, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p1}, Lnbisdk/jw;->hu()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    move v0, v1

    goto :goto_0

    :pswitch_0
    iget-object v0, p0, Lnbisdk/i;->iD:Lnbisdk/kw;

    if-eqz v0, :cond_2

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lnbisdk/i;->iF:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x1770

    cmp-long v0, v0, v2

    if-gez v0, :cond_2

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lnbisdk/i;->iF:J

    invoke-virtual {p1}, Lnbisdk/jw;->hv()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lnbisdk/ab;

    iget-object v1, p0, Lnbisdk/i;->iD:Lnbisdk/kw;

    invoke-direct {p0, v1, v0}, Lnbisdk/i;->a(Lnbisdk/kw;[Lnbisdk/ab;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iput-wide v1, p0, Lnbisdk/i;->iB:J

    if-eqz v0, :cond_1

    if-eqz v0, :cond_2

    array-length v0, v0

    if-nez v0, :cond_2

    :cond_1
    iget-wide v0, p0, Lnbisdk/i;->iB:J

    iget-object v2, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2}, Lnbisdk/hz;->gv()I

    move-result v2

    mul-int/lit16 v2, v2, 0x3e8

    int-to-long v2, v2

    add-long/2addr v0, v2

    iput-wide v0, p0, Lnbisdk/i;->iB:J

    :cond_2
    const/4 v0, 0x1

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method

.method public final bo()V
    .locals 0

    return-void
.end method

.method public final e(Ljava/util/Vector;)V
    .locals 11

    const/4 v10, 0x0

    if-eqz p1, :cond_3

    invoke-virtual {p1}, Ljava/util/Vector;->size()I

    move-result v0

    if-lez v0, :cond_3

    invoke-virtual {p1}, Ljava/util/Vector;->size()I

    move-result v0

    new-array v7, v0, [Lnbisdk/ab;

    move v8, v10

    move v9, v10

    :goto_0
    invoke-virtual {p1}, Ljava/util/Vector;->size()I

    move-result v0

    if-ge v8, v0, :cond_3

    invoke-virtual {p1, v8}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lnbisdk/qd;

    new-instance v0, Lnbisdk/ab;

    invoke-virtual {p0}, Lnbisdk/qd;->I()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Lnbisdk/qd;->eu()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v2

    const-wide/16 v3, 0x0

    invoke-virtual {p0}, Lnbisdk/qd;->getSSID()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0}, Lnbisdk/qd;->K()I

    move-result v6

    invoke-direct/range {v0 .. v6}, Lnbisdk/ab;-><init>(Ljava/lang/String;IJLjava/lang/String;I)V

    new-instance v1, Ljava/util/Vector;

    invoke-direct {v1}, Ljava/util/Vector;-><init>()V

    invoke-virtual {p0}, Lnbisdk/qd;->L()Ljava/util/Vector;

    move-result-object v2

    if-eqz v2, :cond_2

    move v3, v10

    :goto_1
    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v4

    if-ge v3, v4, :cond_1

    invoke-virtual {v2, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lnbisdk/fp;

    if-eqz p0, :cond_0

    new-instance v4, Lnbisdk/of;

    invoke-virtual {p0}, Lnbisdk/fp;->getKey()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0}, Lnbisdk/fp;->getValue()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v4, v5, v6}, Lnbisdk/of;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v4}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    :cond_0
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_1
    invoke-virtual {v0, v1}, Lnbisdk/ab;->a(Ljava/util/Vector;)V

    :cond_2
    aput-object v0, v7, v9

    add-int/lit8 v0, v9, 0x1

    invoke-static {}, Lnbisdk/mw;->iU()Lnbisdk/dx;

    move-result-object v1

    const/4 v2, 0x1

    invoke-interface {v1, v2, v7}, Lnbisdk/dx;->a(ILjava/lang/Object;)V

    add-int/lit8 v1, v8, 0x1

    move v8, v1

    move v9, v0

    goto :goto_0

    :cond_3
    return-void
.end method

.method public final eE()V
    .locals 7

    const/4 v4, 0x1

    const-wide v5, 0x408f400000000000L

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lnbisdk/i;->iM:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x4e20

    cmp-long v0, v0, v2

    if-lez v0, :cond_0

    invoke-direct {p0, v4}, Lnbisdk/i;->v(Z)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/i;->iM:J

    :cond_0
    iget-boolean v0, p0, Lnbisdk/i;->iK:Z

    if-ne v0, v4, :cond_3

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/i;->iK:Z

    iget-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/i;->iD:Lnbisdk/kw;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    invoke-interface {v0}, Lnbisdk/jf;->gW()J

    move-result-wide v0

    iget-wide v2, p0, Lnbisdk/i;->iE:J

    sub-long v0, v2, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->abs(J)J

    move-result-wide v0

    long-to-double v0, v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "ANALYTICS - Time difference:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    div-double v3, v0, v5

    invoke-static {v3, v4}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    div-double v2, v0, v5

    iget-object v4, p0, Lnbisdk/i;->iD:Lnbisdk/kw;

    invoke-interface {v4}, Lnbisdk/kw;->fX()D

    move-result-wide v4

    mul-double/2addr v2, v4

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "ANALYTICS - Distance difference:"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-static {v2, v3}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    iget-object v4, p0, Lnbisdk/i;->iD:Lnbisdk/kw;

    invoke-static {v4}, Lnbisdk/i;->d(Lnbisdk/kw;)Z

    move-result v4

    if-eqz v4, :cond_1

    const-wide/high16 v4, 0x4059

    cmpg-double v2, v2, v4

    if-ltz v2, :cond_2

    :cond_1
    iget-object v2, p0, Lnbisdk/i;->iD:Lnbisdk/kw;

    invoke-static {v2}, Lnbisdk/i;->d(Lnbisdk/kw;)Z

    move-result v2

    if-nez v2, :cond_4

    const-wide v2, 0x40cd4c0000000000L

    cmpg-double v0, v0, v2

    if-gez v0, :cond_4

    :cond_2
    iget-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    invoke-interface {v0}, Lnbisdk/jf;->gX()Ljava/util/Vector;

    move-result-object v0

    if-eqz v0, :cond_3

    invoke-virtual {v0}, Ljava/util/Vector;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_3

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iput-wide v1, p0, Lnbisdk/i;->iF:J

    invoke-virtual {p0, v0}, Lnbisdk/i;->e(Ljava/util/Vector;)V

    :cond_3
    :goto_0
    return-void

    :cond_4
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/i;->iF:J

    iget-object v0, p0, Lnbisdk/i;->ee:Lnbisdk/jf;

    invoke-interface {v0}, Lnbisdk/jf;->cu()Z

    goto :goto_0
.end method

.method public final declared-synchronized eS()Z
    .locals 4

    const/4 v1, 0x1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lnbisdk/i;->cB:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lnbisdk/i;->it:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-virtual {v0}, Lnbisdk/my;->iW()Ljava/util/Vector;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Vector;->size()I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    move v0, v1

    :goto_0
    monitor-exit p0

    return v0

    :cond_1
    const/4 v0, 0x1

    :try_start_1
    iput-boolean v0, p0, Lnbisdk/i;->cB:Z

    new-instance v0, Lnbisdk/i$a;

    invoke-direct {v0, p0}, Lnbisdk/i$a;-><init>(Lnbisdk/i;)V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/ix;->gR()Lcom/navbuilder/nb/f;

    move-result-object v1

    invoke-static {v0, v1}, Lnbisdk/dh;->a(Lnbisdk/rf;Lcom/navbuilder/nb/f;)Lnbisdk/fr;

    move-result-object v1

    sget-boolean v2, Lnbisdk/bk;->cG:Z

    if-eqz v2, :cond_2

    const-string v2, "Analytics (uploading)"

    invoke-static {v2}, Lnbisdk/ef;->H(Ljava/lang/String;)V

    :cond_2
    invoke-direct {p0}, Lnbisdk/i;->eT()V

    iget-object v2, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    iget-object v3, p0, Lnbisdk/i;->iu:Lnbisdk/hz;

    invoke-virtual {v2, v3}, Lnbisdk/my;->b(Lnbisdk/hz;)V

    iget-object v2, p0, Lnbisdk/i;->iv:Lnbisdk/my;

    invoke-interface {v1, v2}, Lnbisdk/fr;->a(Lnbisdk/my;)V

    const/4 v1, 0x0

    iput v1, p0, Lnbisdk/i;->ix:I

    const-wide/16 v1, 0x0

    iput-wide v1, p0, Lnbisdk/i;->iz:J
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    invoke-virtual {p0}, Ljava/lang/Object;->wait()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_0

    :goto_1
    :try_start_3
    invoke-virtual {v0}, Lnbisdk/i$a;->v()Z
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    move-result v0

    goto :goto_0

    :catch_0
    move-exception v1

    goto :goto_1

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final i(Ljava/lang/String;)V
    .locals 1

    const-string v0, "analytics-events"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lnbisdk/i;->v(Z)V

    :cond_0
    return-void
.end method

.method public final onRequestCancelled(Lcom/navbuilder/nb/b;)V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/i;->cB:Z

    return-void
.end method

.method public final onRequestComplete(Lcom/navbuilder/nb/b;)V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/i;->cB:Z

    return-void
.end method

.method public final onRequestError(Lcom/navbuilder/nb/NBException;Lcom/navbuilder/nb/b;)V
    .locals 2

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/i;->cB:Z

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/i;->iI:J

    return-void
.end method

.method public final onRequestProgress(ILcom/navbuilder/nb/b;)V
    .locals 0

    return-void
.end method

.method public final onRequestStart(Lcom/navbuilder/nb/b;)V
    .locals 0

    return-void
.end method

.method public final onRequestTimedOut(Lcom/navbuilder/nb/b;)V
    .locals 2

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/i;->cB:Z

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/i;->iI:J

    return-void
.end method
